From: Florian Müllner Date: Mon, 28 Jun 2021 09:57:05 +0000 (+0200) Subject: boxpointer: Disable unredirection while visible X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~249 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=54a71944ba7dd3704fb839021e5a4a90acd68c30;p=gnome-shell.git boxpointer: Disable unredirection while visible Some popovers like the ibus candidate popover may be requested while showing an unredirected fullscreen window. Disable unredirection while the popover is visible so that it can actually be shown. Part-of: --- diff --git a/js/ui/boxpointer.js b/js/ui/boxpointer.js index b8c2f09b6..c664ae748 100644 --- a/js/ui/boxpointer.js +++ b/js/ui/boxpointer.js @@ -1,7 +1,7 @@ // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- /* exported BoxPointer */ -const { Clutter, GObject, St } = imports.gi; +const { Clutter, GObject, Meta, St } = imports.gi; const Main = imports.ui.main; @@ -48,6 +48,13 @@ var BoxPointer = GObject.registerClass({ this._sourceAlignment = 0.5; this._muteInput = true; + this.connect('notify::visible', () => { + if (this.visible) + Meta.disable_unredirect_for_display(global.display); + else + Meta.enable_unredirect_for_display(global.display); + }); + this.connect('destroy', this._onDestroy.bind(this)); }